示例#1
0
 public IActionResult Edit(int id, [FromBody] cabdto cabdetails)
 {
     try
     {
         return(Ok(cabService.UpdateCab(id, cabdetails)));
     }
     catch (Exception e)
     {
         return(Ok(e));
     }
 }
示例#2
0
        public async Task <IActionResult> UpdatePlace(CabRequestModel cabRequest)
        {
            var cab = await _cabService.UpdateCab(cabRequest);

            return(Ok(cab));
        }