public IActionResult GetCurrentLocation([FromBody] LocationViewModel model) { var response = ServerResponse.OK; if (string.IsNullOrEmpty(model.Token)) { return(Ok(_errorMapper.MapToError(ServerResponse.BadRequest, Resource.EmptyToken))); } if (!_requestValidator.IsAdministrator(model.Token)) { return(Ok(_errorMapper.MapToError(ServerResponse.BadRequest, Resource.NotPermittedToInvokeService))); } response.Result = _locationManagement.RetriveLocation(model); return(Ok(response)); }