public IActionResult Delete(int id)
        {
            GetByIdPublicationHouseViewModel publicationHouse = _publicationHouseService.GetById(id);

            _publicationHouseService.Delete(id);
            return(Ok(publicationHouse));
        }
Beispiel #2
0
 public IActionResult Delete(int id)
 {
     if (id != 0)
     {
         _publicationHouseService.Delete(id);
     }
     return(Ok(id));
 }
        public ActionResult Delete(int id)
        {
            _publicationHouseService.Delete(id);

            return(RedirectToAction("Index"));
        }