예제 #1
0
        public async Task <IActionResult> GetInitiativeProfile(string id)
        {
            var initiative = await _initiativeService.GetInitiativeProfile(id);

            if (initiative != null)
            {
                return(Ok(initiative));
            }

            if (initiative == null)
            {
                return(BadRequest("Initiative not exists"));
            }
            return(BadRequest("Failed to get initiative list"));
        }