public JsonResult GetRoomSalesAmount(DateTime sDate, DateTime eDate, int roomTypeId, int diccountsId, int packetId)
        {
            int dayCount = (eDate - sDate).Days;

            decimal roomPrice     = _serviceRoomTypes.GetById(roomTypeId).Amount;
            int     toteldiscount = _servicePackets.GetById(packetId).PricePercentage - _serviceDiscounts.GetById(diccountsId).Rate;
            decimal a             = (decimal)toteldiscount / 100;
            decimal countMoney    = (dayCount * roomPrice) * (decimal)(a + 1);

            return(Json(countMoney));
        }
 public ActionResult PacketEdit(int id)
 {
     if (_servicePackets.GetById(id) != null)
     {
         PacketsModel model = _servicePackets.GetById(id).EntityToModel();
         return(View(model));
     }
     else
     {
         return(RedirectToAction("PacketList"));
     }
 }