public static void PrintInfo(ICrudable crudable) { crudable.Add(); crudable.Update(); crudable.Delete(); crudable.Read(); Console.WriteLine(); }
public static void DoDbOperation(ICrudable icrudable) { Console.WriteLine("In side DoDbOperation"); icrudable.Create(); icrudable.Read(); icrudable.Delete(); icrudable.Update(); }
public static void DoDbOperation(ICrudable crud) { Console.WriteLine("Doing db operations"); crud.Create(); crud.Read(); crud.Update(); crud.Delete(); }
public static void DoDbOpperation(ICrudable crudOp) { Console.WriteLine("Inside Db operation"); crudOp.Create(); crudOp.Read(); crudOp.Update(); crudOp.Delete(); }
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))); }