Beispiel #1
0
        public void Create(CreateCustomerServiceDTO dto)
        {
            var CS = new CustomerServiceDbEntity();

            CS.CustomerId = dto.CustomerId;
            CS.ServiceId  = dto.ServiceId;
            CS.Price      = dto.Price;
            CS.OrderDate  = dto.OrderDate;
            _DB.CustomerServices.Add(CS);
            _DB.SaveChanges();
        }
Beispiel #2
0
 public IActionResult Create([FromBody] CreateCustomerServiceDTO dto)
 {
     _CSService.Create(dto);
     return(Ok(GetResponse("Added")));
 }