Exemplo n.º 1
0
 public bool editUser(Customer c)
 {
     if (_adminBLL.editUser(c) && c.personalIdentification == ((string[])Session["userInfo"])[0])
     {
         string[] tempUserInfo = _adminBLL.getUserInfo(c.personalIdentification);
         string[] userInfo     = new string[4];
         for (int i = 0; i < userInfo.Length - 1; i++)
         {
             userInfo[i] = tempUserInfo[i];
         }
         userInfo[3]         = "true";
         Session["userInfo"] = userInfo;
     }
     return(_adminBLL.editUser(c));
 }
Exemplo n.º 2
0
        public string editUser(int id, string fornavn, string etternavn, string adresse, string postnummer, string poststed, string epost)
        {
            var jsonSerializer = new JavaScriptSerializer();

            return(jsonSerializer.Serialize(_adminBLL.editUser(id, fornavn, etternavn, adresse, postnummer, poststed, epost)));
        }