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

            return(Ok(cab));
        }