public JsonResult AprobarOrdenProduccionMasivo(List<int> ordenesProduccion)
        {
            var response = new JsonResponse();
            try
            {
                using (var service = new ProduccionServiceClient())
                {
                    service.AprobarMasivoOrdenesProduccion(ordenesProduccion);
                }

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

                LogError(ex);
            }
            return Json(response);
        }
예제 #2
0
        public JsonResult AprobarOrdenProduccionMasivo(List <int> ordenesProduccion)
        {
            var response = new JsonResponse();

            try
            {
                using (var service = new ProduccionServiceClient())
                {
                    service.AprobarMasivoOrdenesProduccion(ordenesProduccion);
                }

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

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