예제 #1
0
        // GET: Resource/Edit/5
        public ActionResult Edit(int id)
        {
            Resources r   = ResourcesService.GetById(id);
            var       res = new ResourcesVM
            {
                Date_Location = r.Date_Location,
                Description   = r.Description,
                Latitude      = r.Latitude.ToString().Replace(",", "."),
                Longitude     = r.Longitude.ToString().Replace(",", "."),
                TypeResource  = r.TypeResource,
            };

            return(View(res));
        }