Exemple #1
0
 public TransakcjaModel()
 {
     objectId       = Utillities.getHexGuid();
     ProduktyWydane = new List <IPrzedmiotTransakcji>();
     ProduktyWydane.Add(new PizzaModel());
     ProduktyWydane.Add(new PizzaModel());
     ProduktyWydane.Add(new NapojModel());
     ProduktyWydane.ForEach(x => Kwota += x.PobierzCene());
 }
        public NapojModel()
        {
            ObjectId = Utillities.getHexGuid();
            Nazwa    = "Przykladowy napoj";
            Cena     = 5.0F;

            //Do usuniecia
            Random rnd = new Random();

            //Koniec usuniecia

            WalidujWiek = rnd.Next(0, 1) == 1;
        }
Exemple #3
0
        public void DeleteDamage(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            _damageAppService.DeleteDamage(token, id);
        }
Exemple #4
0
        public DamageReportCompleteOutputDto RepairDamage(DamageReportRepairDto damage)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.RepairDamage(token, damage));
        }
Exemple #5
0
        public DamageReportOutputDto ReportDamage(DamageReportInputDto damage)
        {
            string token = Utillities.GetAuthTokenOrNullIfException(Request);

            return(_damageAppService.ReportDamage(damage, token));
        }
Exemple #6
0
        public DamageReportCompleteOutputDto ModifyDamageReport(int id, ModifyDamageReportDto modifiedDamage)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.ModifyDamageReport(token, id, modifiedDamage));
        }