Exemple #1
0
        public void Add()
        {
            var eventCustomer = new EventCustomer()
            {
                Id                  = 1,
                ContractId          = 1,
                CustomerNameSurname = "Burak Çağlayan",
                Plate               = "41BC058"
            };

            var result = repository.Add(eventCustomer);

            Assert.Equal(eventCustomer.Id.ToString(), result);
        }
        public string Add([FromBody] EventCustomer customer)
        {
            var result = repository.Add(customer);

            return(result);
        }