Example #1
0
        public async Task <int> CreateRole()
        {
            int rackId = await _rackMaster.CreateRack(rackMaster);

            SavedStatus = "Saved Successfully";
            rackMaster  = new ProTracker_TO.RackMaster();
            return(rackId);
        }
Example #2
0
        public bool IsVisible(ProTracker_TO.RackMaster Rack)
        {
            if (string.IsNullOrEmpty(Filter))
            {
                return(true);
            }

            if (Rack.rak_Rack_Number.Contains(Filter, StringComparison.OrdinalIgnoreCase))
            {
                return(true);
            }

            if (Rack.rak_Rack_Name.Contains(Filter, StringComparison.OrdinalIgnoreCase))
            {
                return(true);
            }

            if (Rack.rak_Rack_Id.ToString().Contains(Filter))
            {
                return(true);
            }

            return(false);
        }
Example #3
0
 public void Displayrec(ProTracker_TO.RackMaster e)
 {
     rackMaster.rak_Rack_Id     = e.rak_Rack_Id;
     rackMaster.rak_Rack_Name   = e.rak_Rack_Name;
     rackMaster.rak_Rack_Number = e.rak_Rack_Number;
 }