Exemple #1
0
 public async Task UpdateTaskPocAsync(TaskPocs taskPocs)
 {
     try
     {
         _context.TaskPocs.Update(taskPocs);
         await _context.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Exemple #2
0
        public async Task InsertTaskPocs(TaskPocs taskPocs)
        {
            try
            {
                await _context.TaskPocs.AddAsync(taskPocs);

                await _context.SaveChangesAsync();
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }