Beispiel #1
0
 public static void PrintInfo(ICrudable crudable)
 {
     crudable.Add();
     crudable.Update();
     crudable.Delete();
     crudable.Read();
     Console.WriteLine();
 }
Beispiel #2
0
 public static void DoDbOperation(ICrudable icrudable)
 {
     Console.WriteLine("In side DoDbOperation");
     icrudable.Create();
     icrudable.Read();
     icrudable.Delete();
     icrudable.Update();
 }
Beispiel #3
0
 public static void DoDbOperation(ICrudable crud)
 {
     Console.WriteLine("Doing db operations");
     crud.Create();
     crud.Read();
     crud.Update();
     crud.Delete();
 }
Beispiel #4
0
 public static void DoDbOpperation(ICrudable crudOp)
 {
     Console.WriteLine("Inside Db operation");
     crudOp.Create();
     crudOp.Read();
     crudOp.Update();
     crudOp.Delete();
 }
Beispiel #5
0
        public async Task <IActionResult> DeleteConfirmed(short id)
        {
            await Task.Run(() => employeesrepository.Delete(id));

            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> DeleteConfirmed(short id)
        {
            await Task.Run(() => ingredientsrepo.Delete(id));

            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> DeleteConfirmed(byte id)
        {
            await Task.Run(() => positionrepo.Delete(id));

            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await Task.Run(() => productSalesrepo.Delete(id));

            return(RedirectToAction(nameof(Index)));
        }