// Default contructor that set entity to field
 public StatusToStatuModel(StatusToStatu statustostatu)
 {
     this._status_to_statu = statustostatu;
     this._status_id = statustostatu.StatusId;
     this._link_to_status_id = statustostatu.LinkToStatusId;
     this._originalStatusToStatu = statustostatu.DeepClone();
 }
 // Default contructor that set entity to field
 public StatusToStatuModel(StatusToStatu statustostatu)
 {
     this._status_to_statu       = statustostatu;
     this._status_id             = statustostatu.StatusId;
     this._link_to_status_id     = statustostatu.LinkToStatusId;
     this._originalStatusToStatu = statustostatu.DeepClone();
 }
Exemple #3
0
 // Update a existed StatusToStatu
 public StatusToStatu UpdateStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Update <StatusToStatu>(_statusToStatu);
     return(_statusToStatu);
 }
Exemple #4
0
 // Delete a existed StatusToStatu
 public void DeleteStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Delete <StatusToStatu>(_statusToStatu);
 }
Exemple #5
0
 // Add a new StatusToStatu
 public StatusToStatu AddStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Add <StatusToStatu>(_statusToStatu);
     return(_statusToStatu);
 }
Exemple #6
0
 // Refresh an existed StatusToStatu
 public StatusToStatu RefeshStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Refresh <StatusToStatu>(_statusToStatu);
     return(_statusToStatu);
 }
 // Default contructor
 public StatusToStatuModel()
 {
     this.IsNewItem = true;
     this._status_to_statu = new StatusToStatu();
 }
 // Delete a existed StatusToStatu
 public void DeleteStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Delete<StatusToStatu>(_statusToStatu);
 }
 // Add a new StatusToStatu
 public StatusToStatu AddStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Add<StatusToStatu>(_statusToStatu);
     return _statusToStatu;
 }
 // Update a existed StatusToStatu
 public StatusToStatu UpdateStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Update<StatusToStatu>(_statusToStatu);
     return _statusToStatu;
 }
 // Refresh an existed StatusToStatu
 public StatusToStatu RefeshStatusToStatu(StatusToStatu _statusToStatu)
 {
     unitOfWork.Refresh<StatusToStatu>(_statusToStatu);
     return _statusToStatu;
 }