public async Task <IActionResult> UpdateUser([FromBody] User User) { ctx.Users.Update(User); await ctx.SaveChangesAsync(); return(Ok()); }
public async Task <IActionResult> PostUser([FromBody] User User) { await appContext.Users.AddAsync(User); await appContext.SaveChangesAsync(); return(Ok()); }