コード例 #1
0
 public JsonResult ChangeStatus(int id, bool status)
 {
     _warningService.ChangeStatus(id, status);
     return(new JsonFactory().Success(status ? MessageConstants.Activate : MessageConstants.Deactivate));
 }
コード例 #2
0
 public SuccessResponse Put(ChangeStatusRequest request)
 {
     return(_warningService.ChangeStatus(request));
 }