public JsonResult RechazarOrdenProduccion(int id, string motivo) { var response = new JsonResponse(); try { using (var service = new ProduccionServiceClient()) { service.RechazarOrdenProduccion(id, motivo); } response.Success = true; response.Message = "Ok"; } catch (Exception ex) { response.Message = ex.Message; LogError(ex); } return(Json(response)); }
public JsonResult RechazarOrdenProduccion(int id, string motivo) { var response = new JsonResponse(); try { using (var service = new ProduccionServiceClient()) { service.RechazarOrdenProduccion(id, motivo); } response.Success = true; response.Message = "Ok"; } catch (Exception ex) { response.Message = ex.Message; LogError(ex); } return Json(response); }