public TaskBusiness(IRepository <Task> taskRepository,
                     IParentTaskBusiness parentTaskBusiness, IProjectBusiness projectBusiness,
                     IRepository <User> userRepository)
 {
     _taskRepository     = taskRepository;
     _parentTaskBusiness = parentTaskBusiness;
     _projectBusiness    = projectBusiness;
     _userRepository     = userRepository;
 }
Exemple #2
0
 public void Setup(BenchmarkContext context)
 {
     repo            = new Repository <Task>();
     projectrepo     = new Repository <Project>();
     userRepo        = new Repository <User>();
     prepo           = new Repository <ParentTask>();
     ptask           = new ParentTaskBusiness(prepo);
     procectBusiness = new ProjectBusiness(projectrepo, userRepo, repo);
     _taskBusiness   = new TaskBusiness(repo, ptask, procectBusiness, userRepo);
 }
 public Response AddNewProject(ProjectCustomModel objProjectModel)
 {
     _response = new Response();
     try
     {
         IProjectBusiness projectService = new ProjectBusiness();
         _response.responseData = projectService.AddNewProject(objProjectModel);
         _response.message      = "Record saved successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         projectService = null;
     }
     return(_response);
 }
 public Response GetProjectDetail(int ProjectId)
 {
     _response = new Response();
     try
     {
         IProjectBusiness projectService = new ProjectBusiness();
         _response.responseData = projectService.GetProjectDetail(ProjectId);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         projectService = null;
     }
     return(_response);
 }
 public ProjectsController(IProjectBusiness projectBusiness)
 {
     _projectBusiness = projectBusiness;
 }
 public ProjectController(IProjectBusiness project)
 {
     p1 = project;
 }
 public ProjectController()
 {
     p1 = new Project();
 }
Exemple #8
0
 public HomeController(IProjectBusiness project)
 {
     _project = project;
 }
 public ProjectsController(IProjectBusiness project)
 {
     this.project = project;
 }
Exemple #10
0
 public ProjectController(IConfiguration config, IMapper _mapper, IProjectBusiness _projectBusiness)
 {
     mapper          = _mapper;
     projectBusiness = _projectBusiness;
 }
 public WebProjectController(IProjectBusiness projectBusiness, IUserBusiness userBusiness)
 {
     _projectBusiness = projectBusiness;
     _userBusiness = userBusiness;
 }
 public ClientProjectController(IProjectBusiness projectBusiness)
 {
     _projectBusiness = projectBusiness;
 }
 public ProjectAPIController(ProjectBusiness _projectService)
 {
     this.projectService = _projectService;
 }
 public ProjectController(IProjectBusiness projectBusiness)
 {
     this.projectBusiness = projectBusiness;
 }