public async Task <IHttpActionResult> Post(WardViewModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { var stf = await _wardService.InsertAsync(model); _unitOfWorkAsync.Commit(); return(Created(model)); } catch (Exception ex) { throw ex; } }