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