Exemplo n.º 1
0
        public PartialViewResult RecordEndUserForm(Babylips.DB.UserForm model)
        {
            model.UserId     = session.User.Data.Id;
            model.IsActive   = true;
            model.CreateDate = DateTime.Now;

            srvUserForm service = new srvUserForm();

            service.Save(model);

            ViewBag.HasUserForm = true;

            return(PartialView());
        }
Exemplo n.º 2
0
        public PartialViewResult RecordEndUserForm()
        {
            srvUserForm service     = new srvUserForm();
            bool        HasUserForm = service.HasUser(session.User.Data.Id);

            ViewBag.HasUserForm = HasUserForm;

            if (!HasUserForm)
            {
                srvCity cities = new srvCity();
                ViewBag.slCities = cities.GetAllActive().ToList();
            }


            return(PartialView());
        }