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