示例#1
0
 public Response AddNewAssociation(ProjectMemberAssociationCustomModel objProjectMemberModel)
 {
     _response = new Response();
     try
     {
         IProjectMemberAssociationBusiness projectMemberService = new ProjectMemberAssociationBusiness();
         _response.responseData = projectMemberService.AddNewProjectMemberAssociation(objProjectMemberModel);
         _response.message      = "Record saved successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         projectMemberService = null;
     }
     return(_response);
 }
示例#2
0
 public Response DeleteProjectAssociation(int ProjectId)
 {
     _response = new Response();
     try
     {
         IProjectMemberAssociationBusiness projectMemberService = new ProjectMemberAssociationBusiness();
         _response.responseData = projectMemberService.DeleteProjectAssociation(ProjectId);
         _response.message      = "Record deleted successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         projectMemberService = null;
     }
     return(_response);
 }
示例#3
0
 public ProjectMemberAssociationAPIController(ProjectMemberAssociationBusiness _projectMemberService)
 {
     this.projectMemberService = _projectMemberService;
 }