Example #1
0
        public ActionResult Unlocalize(Guid id)
        {
            var device = Context.Devices.FirstOrDefault(x => x.Id == id);
            if (device == null)
            {
                return HttpNotFound();
            }

            var deviceService = new DeviceService(Context);
            deviceService.Unlocalize(device);

            return RedirectToAction("List");
        }