public async Task <int> Delete(int listId, bool isDeleteAllTasks) { int rowAffacted = 0; IDeleteList deleteList = _deleteList.FirstOrDefault(x => x.isDeleteAllTasks == isDeleteAllTasks); rowAffacted = await deleteList.Delete(listId); return(rowAffacted); }
public ListingController(IListingServices services, ICreateList listCreate, IReadList listRead, IEditList listEdit, IDeleteList listDelete, ListingModel modelList) { this.ListingServices = services; this.CreateList = listCreate; this.ReadList = listRead; this.EditList = listEdit; this.DeleteList = listDelete; this.ListModelc = modelList; }