public async Task <ActionResult> Post(int id) { try { _log4net.Info("Hotel Count decremented for hotelid : " + id); return(Ok(await repository.Reduce(id))); } catch { _log4net.Error("Error in decrementing hotel count for hotel id :" + id); return(new NoContentResult()); } }