Exemplo n.º 1
0
 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)
         );
 }
Exemplo n.º 2
0
 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();
 }