public async Task <ManageAgentRes> CreateUpdatePartnerAgentDetails([FromBody] ManageAgentReq request) { var response = new ManageAgentRes(); try { response = await _agentRepository.CreateUpdatePartnerAgentDetails(request); } catch (Exception ex) { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message; } return(response); }