public async Task <ActionResult <data.AspNetUsers> > PostAspNetUsers(data.AspNetUsers AspNetUsers) { new Proyecto.BS.AspNetUsers(_context).Insert(AspNetUsers); string _id = AspNetUsers.Id; return(AspNetUsers); }
public async Task <IActionResult> PutAspNetUsers(string id, data.AspNetUsers AspNetUsers) { if (id != AspNetUsers.Id) { return(BadRequest()); } try { new Proyecto.BS.AspNetUsers(_context).Updated(AspNetUsers); } catch (Exception) { if (!AspNetUsersExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }