예제 #1
0
 public JsonResult ChangeStatus(int id, bool status)
 {
     _ingredientGroupService.ChangeStatus(id, status);
     return(new JsonFactory().Success(status ? MessageConstants.Activate : MessageConstants.Deactivate));
 }
예제 #2
0
 public SuccessResponse Put(ChangeStatusRequest request)
 {
     return(_ingredientGroupService.ChangeStatus(request));
 }