예제 #1
0
 public OperationResult <string> UpdateCategoryProperty(CategoryProperty category, CancellationToken cancellation)
 {
     try
     {
         context.Update(category);
         return(OperationResult <string> .BuildSuccessResult("Update Add"));
     }
     catch (Exception ex)
     {
         return(OperationResult <string> .BuildFailure(ex.Message));
     }
 }
예제 #2
0
 public OperationResult <string> UpdateUserRole(UserRole userRole)
 {
     try
     {
         context.Update(userRole);
         return(OperationResult <string> .BuildSuccessResult("Update Success"));
     }
     catch (Exception ex)
     {
         return(OperationResult <string> .BuildFailure(ex.Message));
     }
 }
예제 #3
0
 public OperationResult <string> Update(PostMagazine postMagazine, CancellationToken cancellationToken)
 {
     try
     {
         context.Update(postMagazine);
         return(OperationResult <string> .BuildSuccessResult("Success Update Post"));
     }
     catch (Exception ex)
     {
         return(OperationResult <string> .BuildFailure(ex.Message));
     }
 }