// PUT: api/Groups/5 public async Task <string> Put(int id, GroupDto entity) { if (!ModelState.IsValid) { throw new HttpResponseException(HttpStatusCode.BadRequest); } await GroupGenericFacade.UpdateAsync(entity); return($"Updated Group with id: {id}"); }