Esempio n. 1
0
        public ActionResult my(FormCollection fc)
        {
            if (UserInfo == null)
            {
                return(RedirectToAction("login", "member"));
            }

            var model = new tblcompany();

            model.Area     = fc["Area"];
            model.Contacts = fc["Contacts"];
            model.Moblie   = fc["Moblie"];
            model.Name     = fc["Name"];
            model.userid   = UserInfo.userid;

            GroupBll bll = new GroupBll();
            int      res = bll.UpdateCompany(model);

            if (res < 0)
            {
                model.Status = -999;
            }
            else
            {
                model.Status = -888;
            }

            return(View(model));
        }