public PlaceModel CreatePlaceModel(Place place, string msg) { return new PlaceModel() { PlaceId = place.PlaceId, Name = place.Name, CityId = place.CityId, XCoordinate = (double)place.XCoordinate, YCoordinate = (double)place.YCoordinate, Message = msg }; }
public Place CreatePlace(PlaceModel placeModel) { try { var place = new Place() { PlaceId=placeModel.PlaceId, Name=placeModel.Name, CityId=placeModel.CityId, XCoordinate=placeModel.XCoordinate, YCoordinate=placeModel.YCoordinate }; return place; } catch(Exception) { throw null; } }