Exemplo n.º 1
0
        public ActionResult ViewProject()
        {
            var us   = _repositoryAppUser.Find(u => u.Email.Equals(User.Identity.Name));
            var user = us.FirstOrDefault();

            return(PartialView(user));
        }
Exemplo n.º 2
0
        public ActionResult ViewTasks()
        {
            var user = _repositoryAppUser.Find(u => u.UserName.Equals(User.Identity.Name));
            var us   = user.FirstOrDefault();

            var employee = _repositoryEmployee.GetForRegistration(us.Email);
            var tasks    = _repositoryTask.GetTasks(employee.EmployeeId);

            ViewBag.Tasks = tasks.Any() ? tasks : null;
            ViewBag.Id    = us.Id;

            return(PartialView(tasks));
        }
Exemplo n.º 3
0
        public ActionResult RezultMoney(DateTime to, DateTime from)
        {
            var users = _repositoryUser.Find(us => us.UserName.Equals(User.Identity.Name));
            var user  = users.FirstOrDefault();
            var er    = _repositoryEmployee.GetForRegistration(user.Email);
            EmployeeRepository employeeRep = new EmployeeRepository();
            double             zp          = employeeRep.Zp(er, to, from);

            ViewBag.Zp = zp;
            return(PartialView());
        }