Ejemplo n.º 1
0
 public async Task <ActionResult <UsersView> > PostAsync([FromServices] IPost post, [FromBody] UsersView User)
 {
     log.LogInformation($"adding {User.Fname}, {User.Lname} to the database");
     return(await TryTask <UsersView> .Run(async() =>
     {
         await post.AddUser(User);
         return User;
     }));
 }