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); }
public void UpdateResponse(ResponseWrapper response) { response.Time = DateTime.Now; UnitAccess unitAccess = new UnitAccess(); unitAccess.UpdateResponse(response); }
public void InsertResponse(ResponseWrapper response) { response.Time = DateTime.Now; UnitAccess unitAccess=new UnitAccess(); unitAccess.AddResponse(response); }
public void UpdateResponse(ResponseWrapper response) { ResponseTableAdapter ad = new ResponseTableAdapter(); ad.Update(response.Comment, response.Rating, response.User.UserID, response.UnitCode, response.Time, response.ResponseId); }