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); }
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); }
public ProjectMemberAssociationAPIController(ProjectMemberAssociationBusiness _projectMemberService) { this.projectMemberService = _projectMemberService; }