public async Task <IActionResult> GetAdminUserByUserName(string userName) { try { var response = await _businessLogic.GetAllAdministratorByUserName(userName); var responseMapped = _mapper.Map <IEnumerable <BlAdministratorListResponse>, IEnumerable <AdministratorListResponse> >(response); return(Ok(responseMapped)); } catch (Exception e) { return(BadRequest(e.Message)); } }