Exemple #1
0
 public List <CHANGES_HISTORY> GetByFormTypeAndListFormId(Enums.MenuList formTypeId, List <string> listId)
 {
     return(_repository.Get(c => c.FORM_TYPE_ID == formTypeId && listId.Contains(c.FORM_ID), null, includeTables).OrderByDescending(c => c.MODIFIED_DATE).ToList());
 }
Exemple #2
0
 public List <CHANGES_HISTORY> GetByFormTypeAndFormId(Enums.MenuList formTypeId, string id)
 {
     return(_repository.Get(c => c.FORM_TYPE_ID == formTypeId && c.FORM_ID == id, null, includeTables).OrderByDescending(c => c.MODIFIED_DATE).ToList());
 }
Exemple #3
0
        public void UpdateHistoryFormIdByFormType(string oldFormId, string newFormId, Enums.MenuList formType)
        {
            var dtData = _repository.Get(c => c.FORM_TYPE_ID == formType && c.FORM_ID == oldFormId).ToList();

            foreach (var changesHistory in dtData)
            {
                var changeHistory = _repository.GetByID(changesHistory.CHANGES_HISTORY_ID);
                changesHistory.FORM_ID = newFormId;
                _repository.Update(changesHistory);
            }
        }
Exemple #4
0
 public List <CHANGES_HISTORY> GetByFormTypeId(Enums.MenuList formTypeId)
 {
     return(_repository.Get(c => c.FORM_TYPE_ID == formTypeId, null, includeTables).ToList());
 }