예제 #1
0
        public IHttpActionResult Delete(int id)
        {
            var result = classRepo.GetById(id);

            if (result == null)
            {
                return(Content(HttpStatusCode.NotFound, "Item does not exist"));
            }

            classRepo.Delete(result);

            return(Ok());
        }
예제 #2
0
        public IHttpActionResult Delete(int Id)
        {
            var result = classRepo.Delete(Id);

            return(Ok(result));
        }