public async Task <Entities.Tasks> Update(Tasks Diary, FilterDefinition <Tasks> Filter) { try { return(await repository.UpdateAsync(Filter, Diary)); } catch (Exception ex) { return(null); } }
public async Task <bool> Add(Tasks Task) { try { await repository.SaveAsync(Task); return(true); } catch (Exception ex) { return(false); } }