// GET: RestServices/Details/5 public ActionResult Details(string id) { RestServiceIdDto dto = new RestServiceIdDto(id); RestServiceDto restService = _restServicesManager.GetById(dto); return(View(restService)); }
public ActionResult Delete(string id, IFormCollection collection) { try { RestServiceIdDto dto = new RestServiceIdDto(id); _restServicesManager.Delete(dto); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void Delete(RestServiceIdDto dto) { _serviceRepository.Delete(dto.Id); }
public RestServiceDto GetById(RestServiceIdDto dto) { throw new System.NotImplementedException(); }