public JsonResult AprobarOrdenProduccionIndividual(int id)
        {
            var response = new JsonResponse();
            try
            {
                using (var service = new ProduccionServiceClient())
                {
                    service.AprobarIndividualOrdenProduccion(id);
                }

                response.Success = true;
                response.Message = "Ok";
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;

                LogError(ex);
            }
            return Json(response);
        }
Esempio n. 2
0
        public JsonResult AprobarOrdenProduccionIndividual(int id)
        {
            var response = new JsonResponse();

            try
            {
                using (var service = new ProduccionServiceClient())
                {
                    service.AprobarIndividualOrdenProduccion(id);
                }

                response.Success = true;
                response.Message = "Ok";
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;

                LogError(ex);
            }
            return(Json(response));
        }