public IHttpActionResult Post([FromBody] HallModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var succes = ServiceResponce.FromSuccess().Result("Concert schedules save complete"); var error = ServiceResponce.FromFailed().Result($"Error save concert schedules"); var res = _concertService.SaveHall(model); if (res != null) { succes.Add("ConcertPlaceId", res.Id); } return(Ok(res != null ? succes.Response() : error.Response())); }