Exemple #1
0
        public void Delete(string models)
        {
            List <PublishingHouseViewModel> publishingHouses = JsonConvert.DeserializeObject <List <PublishingHouseViewModel> >(models);

            foreach (PublishingHouseViewModel publishingHouse in publishingHouses)
            {
                _publishingHouseService.DeletePublishingHouse((int)publishingHouse.Id);
            }
        }
 public IActionResult Delete(int id)
 {
     service.DeletePublishingHouse(id);
     return(Ok(id));
 }
 public ActionResult Delete(int id)
 {
     service.DeletePublishingHouse(id);
     return(RedirectToAction("Index"));
 }