Пример #1
0
        public HttpResponseMessage CreateCompany([FromBody] CompanyPoco company)
        {
            var isAdded = _logic.Add(company);

            if (isAdded != null)
            {
                return(Request.CreateResponse(HttpStatusCode.Created, isAdded));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
        }