コード例 #1
0
 public ActionResult Edit([Bind(Include = "customer_id,applicant_name,email,present_address,parmanent_address,mobile_number,father_name,mother_name,user_type,photo,birth_date,religion,year")] tbl_customer tbl_customer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_customer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_customer));
 }
 public ActionResult Edit([Bind(Include = "ex_category_id,category_name")] tbl_expense_category tbl_expense_category)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_expense_category).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_expense_category));
 }
 public ActionResult Edit([Bind(Include = "user_id,user_name,email,mobile_numbar,present_address,parmanent_address,father_name,mother_name,user_type,photo,joining_date,gender")] tbl_user tbl_user)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_user).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_user));
 }
 public ActionResult Edit([Bind(Include = "category_id,category_name,user_id")] tbl_income_category tbl_income_category)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_income_category).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.user_id = new SelectList(db.tbl_user, "user_id", "user_name", tbl_income_category.user_id);
     return(View(tbl_income_category));
 }
コード例 #5
0
 public ActionResult Edit([Bind(Include = "id,receiver,status,notification_id")] tbl_notification_receiver tbl_notification_receiver)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_notification_receiver).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.notification_id = new SelectList(db.tbl_notification, "notification_id", "sender", tbl_notification_receiver.notification_id);
     return(View(tbl_notification_receiver));
 }
コード例 #6
0
 public ActionResult Edit([Bind(Include = "salary_expense_id,employee_id,salary_type,salary_amount,user_name,date,year,user_id")] tbl_salary_expense tbl_salary_expense)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_salary_expense).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.user_id = new SelectList(db.tbl_user, "user_id", "user_name", tbl_salary_expense.user_id);
     return(View(tbl_salary_expense));
 }
コード例 #7
0
 public ActionResult Edit([Bind(Include = "notification_id,sender,notification,date,category_id")] tbl_notification tbl_notification)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_notification).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.category_id = new SelectList(db.tbl_income_category, "category_id", "category_name", tbl_notification.category_id);
     return(View(tbl_notification));
 }
コード例 #8
0
 public ActionResult Edit([Bind(Include = "admin_id,employeeid,admin_name,admin_email,user_name,password,status,admin_access,admin_level,user_id")] tbl_admin tbl_admin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_admin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.user_id = new SelectList(db.tbl_user, "user_id", "user_name", tbl_admin.user_id);
     return(View(tbl_admin));
 }
 public ActionResult Edit([Bind(Include = "l_id,recevier,payment_process,pay_order_no,payment_type,amount,date,year,payment_discription,user_id,customer_id")] tbl_land_account tbl_land_account)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_land_account).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.customer_id = new SelectList(db.tbl_customer, "customer_id", "applicant_name", tbl_land_account.customer_id);
     ViewBag.user_id     = new SelectList(db.tbl_user, "user_id", "user_name", tbl_land_account.user_id);
     return(View(tbl_land_account));
 }
 public ActionResult Edit([Bind(Include = "expense_id,employee_id,expense_category,expense_amount,data,year,expense_discription,user_id,ex_category_id")] tbl_Expense tbl_expense)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_expense).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ex_category_id = new SelectList(db.tbl_expense_category, "ex_category_id", "category_name", tbl_expense.ex_category_id);
     ViewBag.user_id        = new SelectList(db.tbl_user, "user_id", "user_name", tbl_expense.user_id);
     return(View(tbl_expense));
 }
コード例 #11
0
 public ActionResult Edit([Bind(Include = "income_id,payment_process,pay_order_ddno,incame_cetegory,date,year,amount,receiver_id,payment_discription,user_id,category_id")] tbl_extra_account tbl_extra_account)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_extra_account).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.category_id = new SelectList(db.tbl_income_category, "category_id", "category_name", tbl_extra_account.category_id);
     ViewBag.user_id     = new SelectList(db.tbl_user, "user_id", "user_name", tbl_extra_account.user_id);
     return(View(tbl_extra_account));
 }