コード例 #1
0
 public TaskBusiness(IRepository <Task> taskRepository,
                     IParentTaskBusiness parentTaskBusiness, IProjectBusiness projectBusiness,
                     IRepository <User> userRepository)
 {
     _taskRepository     = taskRepository;
     _parentTaskBusiness = parentTaskBusiness;
     _projectBusiness    = projectBusiness;
     _userRepository     = userRepository;
 }
コード例 #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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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;
 }
コード例 #6
0
 public ProjectController(IProjectBusiness project)
 {
     p1 = project;
 }
コード例 #7
0
 public ProjectController()
 {
     p1 = new Project();
 }
コード例 #8
0
 public HomeController(IProjectBusiness project)
 {
     _project = project;
 }
コード例 #9
0
 public ProjectsController(IProjectBusiness project)
 {
     this.project = project;
 }
コード例 #10
0
 public ProjectController(IConfiguration config, IMapper _mapper, IProjectBusiness _projectBusiness)
 {
     mapper          = _mapper;
     projectBusiness = _projectBusiness;
 }
コード例 #11
0
 public WebProjectController(IProjectBusiness projectBusiness, IUserBusiness userBusiness)
 {
     _projectBusiness = projectBusiness;
     _userBusiness = userBusiness;
 }
コード例 #12
0
 public ClientProjectController(IProjectBusiness projectBusiness)
 {
     _projectBusiness = projectBusiness;
 }
コード例 #13
0
 public ProjectAPIController(ProjectBusiness _projectService)
 {
     this.projectService = _projectService;
 }
コード例 #14
0
 public ProjectController(IProjectBusiness projectBusiness)
 {
     this.projectBusiness = projectBusiness;
 }