Exemplo n.º 1
0
 public int CreateLandMark(double longitude, double latitude, int userId, string text)
 {
     try
     {
         User         user     = _detaRepository.GetUser(userId);
         LandMarkNote landmark = new LandMarkNote();
         landmark.Latitude  = latitude;
         landmark.Longitude = longitude;
         landmark.User      = user;
         landmark.UserNote  = text;
         return(_detaRepository.AddLandMark(landmark));
     }
     catch (Exception ex)
     {
         return(-1);
     }
 }