Beispiel #1
0
        public bool CheckExistRackLocation(string rackLocation)
        {
            var rack = _repoRackLocation.FindSingle(x => x.Rack_Location.Trim() == rackLocation.Trim());

            if (rack != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        public bool CheckExistRackLocation(RackLocation_Main_Dto model)
        {
            var item = _repoRackLocation.FindSingle(x => x.Factory_ID.Trim() == model.Factory_ID.Trim() &&
                                                    x.WH_ID.Trim() == model.WH_ID.Trim() &&
                                                    x.Build_ID.Trim() == model.Build_ID.Trim() &&
                                                    x.Floor_ID.Trim() == model.Floor_ID.Trim() &&
                                                    x.Area_ID.Trim() == model.Area_ID.Trim() &&
                                                    x.Rack_Location.Trim() == model.Rack_Location.Trim());

            if (item != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }