Пример #1
0
        public IActionResult Post(SuppliersCreateRequest request)
        {
            var response = new Response();

            try
            {
                _suppliersService.PublishNew(request);
                response.Message = "Se ha creado el proveedor correctamente";
                response.Success = true;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
                response.Message = exception.Message;
            }

            return(Ok(response));
        }