Exemplo n.º 1
0
 public void AddLocation(ApiLocationClientResponseModel item)
 {
     if (!this.Locations.Any(x => x.LocationId == item.LocationId))
     {
         this.Locations.Add(item);
     }
 }
        public virtual ApiLocationClientRequestModel MapClientResponseToRequest(
            ApiLocationClientResponseModel response)
        {
            var request = new ApiLocationClientRequestModel();

            request.SetProperties(
                response.GpsLat,
                response.GpsLong,
                response.LocationName);
            return(request);
        }
        public virtual ApiLocationClientResponseModel MapClientRequestToResponse(
            int locationId,
            ApiLocationClientRequestModel request)
        {
            var response = new ApiLocationClientResponseModel();

            response.SetProperties(locationId,
                                   request.GpsLat,
                                   request.GpsLong,
                                   request.LocationName);
            return(response);
        }
 public void SetLocationIdNavigation(ApiLocationClientResponseModel value)
 {
     this.LocationIdNavigation = value;
 }