Exemple #1
0
        public ActionResult Index()
        {
            DocumentModel documentmodel = new DocumentModel();

            documentmodel.id_document = -1;
            documentmodel.Documents   = operation.GetList <Document>();
            return(View(documentmodel));
        }
        public ActionResult Index()
        {
            flowdefmodellist model = new flowdefmodellist();

            model.id_flowDefinition = -1;
            model.flowdefinitions   = operation.GetList <FlowDefinition>();
            return(View(model));
        }
Exemple #3
0
        // GET: Mail
        public ActionResult Index()
        {
            User user = (User)Session["users"];

            if (user == null)
            {
                return(RedirectToAction("Index", "Login"));
            }

            MailModel model = new MailModel();

            NH.NHibernateOperation operation = new NH.NHibernateOperation();
            model.userList = operation.GetList <User>();
            return(View(model));
        }
Exemple #4
0
        public ActionResult Autherize(WebApplication1.User Marcin)
        {
            NH.NHibernateOperation operation = new NH.NHibernateOperation();
            IList <User>           lists     = operation.GetList <User>();

            foreach (User u in lists)
            {
                if ((u.Name.Equals(Marcin.Name)) && (u.Password.Equals(Marcin.Password)))
                {
                    //TasksController.user = u;
                    PickFlowController.user   = u;
                    WorkEditorController.user = u;
                    TableController.user      = u;
                    Session["users"]          = u;

                    return(RedirectToAction("Index", "Account"));
                }
            }

            return(View("Index"));
        }