Beispiel #1
0
        public ActionResult Delete(int?id)
        {
            try
            {
                if (id == null)
                {
                    return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
                }

                ClientViewModel clientViewModel = new ClientViewModel();
                var             client          = clientViewModel.FindClient(id);

                if (client == null)
                {
                    return(HttpNotFound());
                }
                return(View(client));
            }
            catch (Exception ex)
            {
                errorlogviewmodel = new ErrorLogViewModel();
                errorlogviewmodel.LogError(ex);
                return(View("Error"));
            }
        }