public ResultJSON <Purchase> LastPurchase() { return(new ResultJSON <Purchase> { Code = 0, Data = r.GetAllList().OrderByDescending(p => p.Id).FirstOrDefault() }); }