コード例 #1
0
ファイル: InvAdressService.cs プロジェクト: ismailllefe/ESOFT
        public void DeleteInvAddress(int stationId, string userId)
        {
            TBL_INV_ADDRESS comp = stationRepository.GetById(stationId);

            comp.UPDATE_USER = userId;
            comp.IS_DELETED  = 1;
            stationRepository.Update(comp);
        }
コード例 #2
0
ファイル: InvAdressService.cs プロジェクト: ismailllefe/ESOFT
        //public Category GetCategory(int id)
        //{
        //    var category = categorysRepository.GetById(id);
        //    return category;
        //}

        //public Category GetCategory(string name)
        //{
        //    var category = categorysRepository.GetCategoryByName(name);
        //    return category;
        //}

        public void CreateInvAddress(TBL_INV_ADDRESS station)
        {
            stationRepository.Add(station);
        }
コード例 #3
0
ファイル: InvAdressService.cs プロジェクト: ismailllefe/ESOFT
        //public bool IsInvAddressExist(TBL_INV_ADDRESS station)
        //{
        //    return stationRepository.Get(x => x.IS_DELETED == false && x.ID != station.ID && station.COMPANY_ID == x.COMPANY_ID && x.NAME.ToUpper() == station.NAME.ToUpper()) == null ? false : true;
        //}

        public void UpdateInvAddress(TBL_INV_ADDRESS station)
        {
            stationRepository.Update(station);
        }