public void EditBudget(Budget b) { var bResult = db.Database.SqlQuery<Budget>("EXEC EditBudget @month, @year, @budgetId", new SqlParameter("month", b.Month), new SqlParameter("year", b.Year), new SqlParameter("budgetId", b.Id) ); }
public void CreateBudget(Budget b) { var bResult = db.Database.SqlQuery<Budget>("EXEC CreateBudget @month, @year, @householdId", new SqlParameter("month", b.Month), new SqlParameter("year",b.Year), new SqlParameter("householdId", b.HouseholdId) ).First(); }