Beispiel #1
0
        public ActionResult InsurerDetails(int id)
        {
            var svc   = new InsurerService();
            var model = svc.GetInsurerByID(id);

            return(View(model));
        }
Beispiel #2
0
        public ActionResult InsurerEdit(int id)
        {
            var svc    = new InsurerService();
            var detail = svc.GetInsurerByID(id);
            var model  =
                new InsurerEdit
            {
                InsurerID   = detail.InsurerID,
                Name        = detail.Name,
                Email       = detail.Email,
                Address     = detail.Address,
                PhoneNumber = detail.PhoneNumber,
                Type        = detail.Type
            };

            return(View(model));
        }