public IResult Delete(ToDoItemDto model) { var entity = _mapper.Map <ToDoItem>(model); _toDoItemDal.Delete(entity); return(new SuccessResult()); }
public void Delete(ToDoItem entity) { _toDoItemDal.Delete(entity); }