public void AddBenifit(FormCollection FC) { Employee E = new Employee { Id = (int)TempData["EmpID"] }; FinancialTransaction FT = new FinancialTransaction(); FT.Debit = Convert.ToDouble(FC["benifit"]); FT.Credit = 0; FT.FromAccount = Convert.ToInt32(FC["FromAcc"]); FT.LastEditBy = (Session["User"] as User).ID; FT.Notes = FC["Notes"]; E.AddBenifit(FT); TempData.Keep(); }