public async Task <IActionResult> PutProfileTypes(int id, ProfileTypes profileTypes) { if (id != profileTypes.ProfileTypeId) { return(BadRequest()); } var response = await _db.UpdateProfileType(id, profileTypes); return(_responsesService.PutResponse(response)); }