コード例 #1
0
        public ActionResult Delete(int id, EditionViewModel model)
        {
            Editions editionToDelete = new Editions();

            editionToDelete = editionService.GetEditionById(id);
            model.InjectFrom(editionToDelete);
            editionService.Delete(editionToDelete);
            editionService.Save();
            return(RedirectToAction(nameof(Index)));
        }
コード例 #2
0
 public IHttpActionResult Delete(List <string> ids)
 {
     return(Ok(_service.Delete(ids)));
 }
コード例 #3
0
 public void Delete(Guid id)
 {
     _editionService.Delete(id);
 }