public bool Delete(int albumId)
{
try
{
var db = _albumRepository.Find(a => a.AlbumId == albumId, false).FirstOrDefault();
if (db == null) return false;
_albumRepository.Delete(db);
return true;
}
catch (Exception ex)
{
throw new BlogException(ex.Message, ex.InnerException);
}
}