Пример #1
0
        public async Task <ActionResult <data.AspNetUsers> > PostAspNetUsers(data.AspNetUsers AspNetUsers)
        {
            new Proyecto.BS.AspNetUsers(_context).Insert(AspNetUsers);
            string _id = AspNetUsers.Id;

            return(AspNetUsers);
        }
Пример #2
0
        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());
        }