public async Task <HttpMessage <NewEdit> > EditNew(int id) => await TryCatchResponseAsync(async() => { return(await Task.Run(() => { NewEdit result = GetNewEdit(this, id); result = GetEditContent(this, @"New\[get_content]", result); return CreateResponseOk(result); })); });
public async Task <HttpMessage <bool> > NewPost(NewEdit page) => await TryCatchResponseAsync(async() => { return(await Task.Run(() => { NewEdit result = SetNewEdit(page); SetEditContent(@"New\[get_content]", @"New\[set_content]", @"New\[del_content]", result); return CreateResponseOk(true); })); });
public async Task <HttpMessage <New> > New(string lang, int id) => await TryCatchResponseAsync(async() => { return(await Task.Run(() => { NewEdit newEdit = CmsController.GetNewEdit(this, id); newEdit = CmsController.GetEditContent(this, @"New\[get_content]", newEdit); New result = new New(lang, newEdit); return CreateResponseOk(result); })); });