public OperationResult Delete(string ID) { var model = SALES_VIEWEDList.FirstOrDefault(t => t.ID == ID); SALES_VIEWEDRepository.Delete(model); return(new OperationResult(OperationResultType.Success, "successfully deleted")); }