Esempio n. 1
0
 public IActionResult Create([FromBody] cabdto cabdetails)
 {
     try
     {
         return(Ok(cabService.AddCab(cabdetails)));
     }
     catch (Exception e)
     {
         return(Ok(e));
     }
 }
Esempio n. 2
0
        public async Task <IActionResult> AddCab(CabRequestModel cabRequest)
        {
            var cab = await _cabService.AddCab(cabRequest);

            return(Ok(cab));
        }