Exemple #1
0
 public ActionResult PickUpPoint(int id)
 {
     try
     {
         PickupPointInfo pickUpPoint = _pickupPointService.GetPickupPoint(id);
         return(View(pickUpPoint));
     }
     catch
     {
         throw new HttpException(404, "Not found");
     }
 }
 public ResultModel Update(PickupPointInfo point)
 {
     _shopPickupPointService.UpdatePickupPoint(point);
     return(ResultModel.Success);
 }
        public ResultModel Create(PickupPointInfo point)
        {
            int id = _shopPickupPointService.CreatePickupPoint(point);

            return(new ResultModel(true, id));
        }
        public int CreatePickupPoint(PickupPointInfo point)
        {
            var dataRec = Mapper.Map <PickUpPoint>(point);

            return(_pickUpPointGateway.Insert(dataRec));
        }
        public void UpdatePickupPoint(PickupPointInfo point)
        {
            var dataRec = Mapper.Map <PickUpPoint>(point);

            _pickUpPointGateway.Update(dataRec);
        }