public virtual async Task <IActionResult> OnPostAsync() { var dto = ObjectMapper.Map <CreateEditTodoViewModel, CreateUpdateTodoDto>(ViewModel); await _service.CreateAsync(dto); return(NoContent()); }
public virtual async Task <IActionResult> OnPostAsync() { var dto = ObjectMapper.Map <CreateEditTodoViewModel, CreateUpdateTodoDto>(ViewModel); await _service.CreateAsync(dto); return(NoContent()); }