예제 #1
0
        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);
        }