public OperationReturnModel <string> DeleteItem(ListType type, long listId, List <string> itemNumbers) { OperationReturnModel <string> ret = new OperationReturnModel <string>(); try { _listService.DeleteItems(AuthenticatedUser, SelectedUserContext, type, listId, itemNumbers); var list = new ListModel() { BranchId = SelectedUserContext.BranchId, CustomerNumber = SelectedUserContext.CustomerId, Type = type, ListId = listId }; _cacheListLogic.RemoveSpecificCachedList(list); _cacheListLogic.ClearCustomersListCaches(this.AuthenticatedUser, this.SelectedUserContext, _listService.ReadUserList(this.AuthenticatedUser, this.SelectedUserContext, true)); ret.SuccessResponse = null; ret.IsSuccess = true; } catch (Exception ex) { ret.IsSuccess = false; ret.ErrorMessage = ex.Message; _elRepo.WriteErrorLog("DeleteItem", ex); } return(ret); }