public Response AddNewAssociation(ProjectMemberTimeAssociationCustomModel model) { _response = new Response(); try { IProjectMemberTimeAssociationBusiness projectMemberService = new ProjectMemberTimeAssociationBusiness(); _response.responseData = projectMemberService.AddNewProjectMemberTimeAssociation(model); _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 ProjectMemberTimeAssociationAPIController(ProjectMemberTimeAssociationBusiness _projectMemberService) { this.projectMemberService = _projectMemberService; }