Esempio n. 1
0
 public BugsViewModel(int id)
 {
     var model = new BugManagementService().GetBug(id);
     BugId = id;
     SetParams(model);
 }
Esempio n. 2
0
 public bool IsUserAnAssignedDeveloper()
 {
     var bug = new BugManagementService().GetBug(_currentBugId);
     var context = new ProjectManagementService();
     var projectRoleId = context.GetProjectUsers(bug.ProjectId).Single(e => e.UserId == WebSecurity.CurrentUserId).ProjectRoleId;
     if (bug.AssignedDeveloperId == 0 && projectRoleId == 1)
     {
         return true;
     }
     else
     {
         if (bug.AssignedDeveloperId != WebSecurity.CurrentUserId && projectRoleId == 1)
         {
             return false;
         }
         else
         {
             return true;
         }
     }
 }
Esempio n. 3
0
        public List<BugLog> GetBugLogs()
        {
            var bugLogList = new BugManagementService().GetBugLogs(BugId).ToList();
            bugLogList.Reverse(0, bugLogList.Count);

            return bugLogList;
        }