public async Task <IHttpActionResult> CommentFlatOwnerFamilyUpdate([FromBody] CommentFlatOwnerFamilyViewModel viewmodel) { var model = Mapper.Map <CommentFlatOwnerFamily>(viewmodel); await _commentService.Update(model); return(Ok()); }
public async Task <IHttpActionResult> CommentFlatOwnerFamilyAdd([FromBody] CommentFlatOwnerFamilyViewModel viewmodel) { var model = Mapper.Map <CommentFlatOwnerFamily>(viewmodel); var result = await _commentService.New(model, CurrentUser); return(Ok(Mapper.Map <CommentFlatOwnerFamilyViewModel>(result))); }