public void Post([FromBody] TodoViewModel value) { try { if (ModelState.IsValid) { _todoApp.Save(Mapper.Map <TodoViewModel, Todo>(value)); } } catch (Exception ex) { throw ex; } }
public void Post([FromBody] TodoViewModel value) { try { if (ModelState.IsValid) { _todoApp.Save(Mapper.Map <TodoViewModel, Todo>(value)); } } catch (Exception ex) { throw ex; } }