Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }