Beispiel #1
0
 private EventArea EventAreaDTOToEventArea(EventAreaDTO item)
 {
     return(new EventArea
     {
         Id = item.Id,
         EventId = item.EventId,
         LayoutId = item.LayoutId,
         Description = item.Description,
         CoordX = item.CoordX,
         CoordY = item.CoordY,
         Price = item.Price
     });
 }
Beispiel #2
0
        public ActionResult EditEventArea(EventAreaDTO eventAreaDTO)
        {
            if (!ModelState.IsValid)
            {
                return(View(eventAreaDTO));
            }

            var identity    = (ClaimsIdentity)User.Identity;
            var token       = identity.FindFirst(ClaimTypes.Authentication).Value;
            var eventClient = GetEventServiceClient(User.Identity.Name, token);

            eventClient.UpdateEventAreas(eventAreaDTO);

            var result = eventAreaDTO.EventId;

            eventClient.Close();

            return(RedirectToAction("DetailsEvent", new { id = result }));
        }
Beispiel #3
0
 private BLLStandard.DTO.EventAreaDTO FromEventAreaDTOToBLLStandardEventAreaDTO(EventAreaDTO eventAreaDTO)
 {
     return(new BLLStandard.DTO.EventAreaDTO()
     {
         Id = eventAreaDTO.Id,
         EventId = eventAreaDTO.EventId,
         LayoutId = eventAreaDTO.LayoutId,
         Description = eventAreaDTO.Description,
         CoordX = eventAreaDTO.CoordX,
         CoordY = eventAreaDTO.CoordY,
         Price = eventAreaDTO.Price
     });
 }
Beispiel #4
0
 public void Update(EventAreaDTO obj)
 {
     eventService.Update(FromEventAreaDTOToBLLStandardEventAreaDTO(obj));
 }
Beispiel #5
0
 public void Update(EventAreaDTO obj)
 {
     eventAreaRepository.Update(EventAreaDTOToEventArea(obj));
 }
Beispiel #6
0
 public void Update(EventAreaDTO obj)
 {
     throw new NotImplementedException();
 }