Example #1
0
        public async Task <IActionResult> GetAllAsync()
        {
            try
            {
                var response = await _companyRoleService.ListAsync();

                return(Ok(response));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }