public Task <int> SaveLikeAsync(LikeData like) { if (like.Id != 0) { return(_database.UpdateAsync(like)); } else { return(_database.InsertAsync(like)); } }
public Task <int> DeleteLikeAsync(LikeData like) { return(_database.DeleteAsync(like)); }