コード例 #1
0
 public async Task <IActionResult> CreateUser([FromForm] string name)
 {
     if (await _ChannelService.CreateUser(new User()
     {
         Name = name, ImgPath = ""
     }))
     {
         return(Ok(successfull));
     }
     return(BadRequest(failed));
 }