Ejemplo n.º 1
0
        public IHttpActionResult Post(Productos producto)
        {
            try
            {
                var mng = new ProductosManager();
                mng.Create(producto);

                apiResp         = new ApiResponse();
                apiResp.Message = "Action was executed.";

                return(Ok(apiResp));
            }
            catch (BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message)));
            }
        }