Пример #1
0
 public async Task <Entities.Tasks> Update(Tasks Diary, FilterDefinition <Tasks> Filter)
 {
     try
     {
         return(await repository.UpdateAsync(Filter, Diary));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Пример #2
0
        public async Task <bool> Add(Tasks Task)
        {
            try
            {
                await repository.SaveAsync(Task);

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }