public IHttpActionResult DeleteUrl(int urlId) { try { Url url = new entity.Url() { Id = urlId }; Url deletedUrl = urlService.Delete(url); return(this.Ok(deletedUrl)); } catch (Exception ex) { throw this.ThrowException(ex); } }
public IHttpActionResult DeleteUrl(int urlId) { try { Url url = new entity.Url() { Id = urlId }; Url deletedUrl = urlService.Delete(url); return this.Ok(deletedUrl); } catch (Exception ex) { throw this.ThrowException(ex); } }