public async Task <string> AysUpUser(SnUser user) { int da = await CreateService <SnUser>().UpdateAsync(user); string data = da == 1 ? "更新成功" : "更新失败"; return(data); }
public async Task <IActionResult> AysUpUser(SnUser user) { var data = await _service.AysUpUser(user); return(Ok(data)); }
public async Task <ActionResult <SnUser> > AsyInsArticle(SnUser user) { return(Ok(await _service.AsyInsUser(user))); }
public async Task <SnUser> AsyInsUser(SnUser test) { return(await CreateService <SnUser>().AddAsync(test)); }