Example #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());
 }
Example #2
0
        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;
        }
Example #3
0
        public void DeleteDamage(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

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

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

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

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