public async Task <IHttpActionResult> PostParent(ParentDTO parentDto) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } //Parent postedParent = service.PostParent(parentDto); //return Created("", postedParent); var result = await service.PostParent(parentDto); return(Ok()); }