public async Task <IActionResult> AddOrUpdate(ContentEntry contentEtnry) { var apiMsg = await ApiMessage.Wrap(async() => { ViewData["DataType"] = typeof(FileEntry); var _contentEntry = await contentBusiness.CreateContent(contentEtnry); ViewData["DataModel"] = _contentEntry; }); return(Json(apiMsg)); }
public async Task <IActionResult> AddContent(ContentEntry content) { var apiMsg = await contentBusiness.CreateContent(content); return(Json(apiMsg)); }