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