コード例 #1
0
        public async Task <HttpResponseMessage> CreateHouse([FromBody] HouseModel model)
        {
            var result = await _adminManager.CreateHouse(model);

            if (result == null)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }