// 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(); }
// Update a existed StatusToStatu public StatusToStatu UpdateStatusToStatu(StatusToStatu _statusToStatu) { unitOfWork.Update <StatusToStatu>(_statusToStatu); return(_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); }
// 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; }