public ActionResult <Url> PostUrl(Url url) { try { UrlService urlServ = new UrlService(); var result = urlServ.ExecuteProcessShortURL(url); _context.dbSetUrl.Add(url); _context.SaveChanges(); return(Ok(result)); } catch (Exception e) { return(BadRequest()); } }