Exemplo n.º 1
0
        public bool AssignModuleToDeveloper(ReleaseManagementModel manager)
        {
            manager.ModuleStatus = "In Progress(D)";
            bool   modStatus        = false;
            bool   insertRoleStatus = false;
            string employeeId       = dal.GetEmployeeIdForName(manager.EmployeeName);

            manager.EmployeeId = employeeId;
            bool assignedStatus = dal.AssignModuleToEmployee(manager);

            if (assignedStatus == true)
            {
                modStatus = dal.UpdateModuleStatus(manager.ModuleId, manager.ModuleStatus);
            }
            else
            {
                modStatus = false;
            }
            string role = "Developer";

            if (modStatus == true)
            {
                insertRoleStatus = dal.InsertRole(manager.EmployeeId, role, manager.ModuleId);
            }
            return(insertRoleStatus);
        }