public ActionResult ViewProject() { var us = _repositoryAppUser.Find(u => u.Email.Equals(User.Identity.Name)); var user = us.FirstOrDefault(); return(PartialView(user)); }
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)); }
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()); }