Exemplo n.º 1
0
 private int _SaveUpdate()
 {
     try
     {
         objUser.UserId    = Convert.ToInt32(hdn_ClassAdminId.Value);
         objUser.FirstName = txt_FirstName.Text;
         objUser.LastName  = txt_LastName.Text;
         objUser.Address   = txtAddress.Text;
         objUser.Email     = txtEmail.Text;
         objUser.Password  = txtPassword.Text;
         //objUser.ClassId = Convert.ToInt16(ddl_Class.SelectedValue);
         return(objSchoolAdmin.InsertUpdateClassAdmin(objUser));
     }
     catch (Exception)
     {
         return(objSchoolAdmin.InsertUpdateClassAdmin(objUser));
     }
 }
Exemplo n.º 2
0
    private int _SaveUpdate()
    {
        objUser.UserId    = Convert.ToInt32(Session["UserId"].ToString());
        objUser.FirstName = txt_FirstName.Text;
        objUser.LastName  = txt_LastName.Text;
        objUser.Address   = txtAddress.Text;
        objUser.Email     = txtEmail.Text;
        objUser.Password  = "";

        return(objSchoolAdmin.InsertUpdateClassAdmin(objUser));
    }
    private int _SaveUpdate()
    {
        BCSchoolAdmin objSchoolAdmnin = new BCSchoolAdmin();

        objUser.UserId    = Convert.ToInt32(hdn_ClassAdminId.Value);
        objUser.FirstName = txt_FirstName.Text;
        objUser.LastName  = txt_LastName.Text;
        objUser.Address   = txtAddress.Text;
        objUser.Email     = txtEmail.Text;
        objUser.Password  = txtPassword.Text;
        return(objSchoolAdmnin.InsertUpdateClassAdmin(objUser));
        //objUser.ClassId = Convert.ToInt16(ddl_Class.SelectedValue);
        //objAppAdmin.InsertUpdateCityAdmin(objUser);
    }
 private int _SaveUpdate()
 {
     BCSchoolAdmin objSchoolAdmnin = new BCSchoolAdmin();
     objUser.UserId = Convert.ToInt32(hdn_ClassAdminId.Value);
     objUser.FirstName = txt_FirstName.Text;
     objUser.LastName = txt_LastName.Text;
     objUser.Address = txtAddress.Text;
     objUser.Email = txtEmail.Text;
     objUser.Password = txtPassword.Text;
     return objSchoolAdmnin.InsertUpdateClassAdmin(objUser);
     //objUser.ClassId = Convert.ToInt16(ddl_Class.SelectedValue);
     //objAppAdmin.InsertUpdateCityAdmin(objUser);
 }