public async Task <ApiResult <string> > AddClass([FromBody] CmsAdvClass parm) { parm.SiteGuid = SiteTool.CurrentSite?.Guid; parm.Guid = Guid.NewGuid().ToString(); return(await _classService.AddAsync(parm)); }
public async Task <IActionResult> AddClass([FromBody] CmsAdvClass parm) { parm.SiteGuid = SiteGuid; parm.Guid = Guid.NewGuid().ToString(); return(Ok(await _classService.AddAsync(parm))); }
public async Task <ApiResult <string> > AddClass(CmsAdvClass parm) { parm.Guid = Guid.NewGuid().ToString(); return(await _classService.AddAsync(parm)); }