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)); } }
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)); } }
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)); } }