public bool CheckItem(Entities.BDSBranch item) { var data = Retrieve <BDSBranch>( T => T.Active == 1 && T.Name == item.Name); return (data.ToList().Count > 0 ? true : false); }
public bool UpdateItem(Entities.BDSBranch item) { item.ModifiedDate = DateTime.Now; return(Update(item)); }
public Entities.BDSBranch CreateItem(Entities.BDSBranch item) { item.Active = 1; item.CreateDate = DateTime.Now; return(Create(item, false)); }