public async Task <IHttpActionResult> CommentMCUpdate([FromBody] CommentMCViewModel viewmodel) { var model = Mapper.Map <CommentMC>(viewmodel); await _commentService.Update(model); return(Ok()); }
public async Task <IHttpActionResult> CommentMCAdd([FromBody] CommentMCViewModel viewmodel) { var model = Mapper.Map <CommentMC>(viewmodel); return(Ok(Mapper.Map <CommentMCViewModel>(await _commentService.New(model, CurrentUser)))); }