public string SaveHistory(LoanHistory history) { using (LoanPriceEntities context = new LoanPriceEntities()) { context.AddToLoanHistories(history); context.SaveChanges(); return "History is added successfully"; } }