public async Task <IActionResult> UpsertTopicDocument([FromBody] dynamic topic) { List <dynamic> topicsList = new List <dynamic> { topic }; if (await userRoleBusinessLogic.ValidateOrganizationalUnit(topic?.organizationalUnit)) { var topics = await topicsResourcesBusinessLogic.UpsertTopicDocumentAsync(topicsList); return(Ok(topics)); } return(StatusCode(403)); }
public async Task <IActionResult> UpsertStaticHomePageDataAsync([FromBody] HomeContent homePageContent) { if (await userRoleBusinessLogic.ValidateOrganizationalUnit(homePageContent.OrganizationalUnit)) { var contents = await staticResourceBusinessLogic.UpsertStaticHomePageDataAsync(homePageContent); return(Ok(contents)); } return(StatusCode(403)); }