示例#1
0
        public IHttpActionResult Post(Categorias categoria)
        {
            try
            {
                var mng = new CategoriasManager();
                mng.Create(categoria);

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

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