public async Task <IActionResult> CreateRegionAsync(string content, string type, string region) { if (content == "content") { return(Ok(await _contentType.CreateContentRegionAsync(type, region))); } else if (content == "page") { return(Ok(await _contentType.CreatePageRegionAsync(type, region))); } else if (content == "post") { return(Ok(await _contentType.CreatePostRegionAsync(type, region))); } else if (content == "site") { return(Ok(await _contentType.CreateSiteRegionAsync(type, region))); } return(NotFound()); }