public IEnumerable <PurchaseReturn> GetPurchaseReturns() { IEnumerable <PurchaseReturn> sr = return_repo.GetAll(); sr = sr.OrderByDescending(p => p.PurchaseReturnId); return(sr); }
public PurchaseReturn GetLastRow() { var data = _PurchaseReturnRepository.GetAll().LastOrDefault(); return(data); }