예제 #1
0
        public void AddResponse(ResponseWrapper response)
        {
            ResponseTableAdapter ad=new ResponseTableAdapter();

            System.Diagnostics.Debug.WriteLine(response.ToString());
            System.Diagnostics.Debug.WriteLine(response.User.UserID);

            ad.Insert(response.User.UserID, response.Unit.UnitCode, response.Comment, response.Rating);
        }
예제 #2
0
        public void UpdateResponse(ResponseWrapper response)
        {
            response.Time = DateTime.Now;

            UnitAccess unitAccess = new UnitAccess();
            unitAccess.UpdateResponse(response);
        }
예제 #3
0
        public void InsertResponse(ResponseWrapper response)
        {
            response.Time = DateTime.Now;

            UnitAccess unitAccess=new UnitAccess();
            unitAccess.AddResponse(response);
        }
예제 #4
0
 public void UpdateResponse(ResponseWrapper response)
 {
     ResponseTableAdapter ad = new ResponseTableAdapter();
     ad.Update(response.Comment, response.Rating, response.User.UserID, response.UnitCode, response.Time,
               response.ResponseId);
 }