public async System.Threading.Tasks.Task <ActionResult <string> > Delete(int id) { try { Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>(); _vks.delete(id, userInfo.Id); return(Ok("success")); } catch (System.Exception e) { return(BadRequest(e.Message)); } }