Пример #1
0
        public ActionResult UsersInProject(String id, String projectId)
        {
            UserBissnessLayer   bissnessLayer = new UserBissnessLayer();
            List <UserWithPerm> user          = bissnessLayer.UserInProject(id).ToList();

            ViewBag.Id        = id;
            ViewBag.ProjectId = projectId;
            return(View(user));
        }
Пример #2
0
        public ActionResult Xml(String id)
        {
            UserBissnessLayer   layer   = new UserBissnessLayer();
            Project             project = layer.GetAllProject().Find(x => x.Id == id);
            List <Task>         tasks   = layer.GetTaskForProject(id);
            List <UserWithPerm> users   = layer.UserInProject(id).ToList();

            Response.AppendHeader("Content-Disposition", "attachment;filename=project.xml");
            byte[] file = Encoding.ASCII.GetBytes(layer.createXML(project, tasks, users));
            return(File(file, "text/xml", "project.xml"));
        }