Beispiel #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var result = await initiativeService.GetAllIntiatives();

                return(Ok(result));
            }catch (Exception ex)
            {
                logger.LogError(ex, ex.Message);
                return(BadRequest($"Something went wrong!, {ex.Message}"));
            }
        }