Beispiel #1
0
        public IActionResult EditBranch(int id)
        {
            var branch = _branch.GetById(id);
            var model  = new BranchDetailModel
            {
                Id          = branch.Id,
                ImageURL    = branch.ImageUrl,
                Name        = branch.Name,
                Address     = branch.Address,
                Telephone   = branch.Telephone,
                Description = branch.Description,
                OpenDate    = branch.OpenDate
            };

            return(View(model));
        }