Exemplo n.º 1
0
        public async Task <IActionResult> Update([FromBody] Models.Cars.CarProperty property)
        {
            var isSuccess = await CarPropertyLogic.Update(GetToken(), property);

            return(Ok(isSuccess));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Delete(int propertyId)
        {
            var isSuccess = await CarPropertyLogic.Delete(GetToken(), propertyId);

            return(Ok(isSuccess));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> Get(int carId)
        {
            var list = await CarPropertyLogic.Get(GetToken(), carId);

            return(Ok(list));
        }