コード例 #1
0
        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);
            }
        }
コード例 #2
0
		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);
			}
		}