public async Task <IActionResult> Get([FromQuery] Item obj = null) { var result = await _service.Get(obj); return(Ok(new ApiGetItemModel { ItemList = _mapper.Map <List <ItemApiModel> >(result), TimeStamp = _databaseTimeStampService.Get() })); }
public async Task <IActionResult> Get([FromQuery] Location obj = null) { var result = await _service.Get(obj); return(Ok(new Bar.Models.Locations.ApiGetLocationModel { LocationList = result, TimeStamp = _databaseTimeStampService.Get() })); }
public IActionResult Get() { try { return(Ok(new TimeStampModel { TimeStamp = _databaseTimeStampService.Get() })); } catch { return(BadRequest()); } }