public string DeleteImage(int imageId, string userId) { var image = _iImageDao.GetById(imageId); CheckImageAndUserIdentity(image, userId); var imageName = image.Name; _iImageDao.Delete(image); return(imageName); }
public ImageEntity GetById(int id) { try { return(_imageDao.GetById(id)); } catch { throw; } }