Ejemplo n.º 1
0
 public SuccessResponse Put(ChangeStatusRequest request)
 {
     return(_tipService.ChangeStatus(request));
 }
 public JsonResult ChangeStatus(int id, bool status)
 {
     _tipService.ChangeStatus(id, status);
     return(new JsonFactory().Success(status ? MessageConstants.Activate : MessageConstants.Deactivate));
 }