Exemplo n.º 1
0
        public async Task <IActionResult> PutProfile(int id, Profile profile)
        {
            if (id != profile.ProfileNumber)
            {
                return(BadRequest());
            }

            var response = await _db.UpdateProfile(id, profile);

            return(_responsesService.PutResponse(response));
        }