Пример #1
0
        public IActionResult ServiceBasedZone(long zoneId)
        {
            DAZone dAZone = new DAZone();

            return(this.OK <List <ManageZone> >(dAZone.ListServiceBasedZone(zoneId, _context)));
        }
Пример #2
0
        public IActionResult EditSetprice([FromBody] List <SetPrice> setPrice)
        {
            DAZone dAZone = new DAZone();

            return(this.OKResponse(dAZone.EditSetprice(setPrice, _context) ? "Update Successfully" : "Updation Failed"));
        }
Пример #3
0
        public IActionResult ManageOperation()
        {
            DAZone dAZone = new DAZone();

            return(this.OK <List <OperationZone> >(dAZone.ManageOperation(_context)));
        }
Пример #4
0
        public IActionResult GetSetprice(long zoneid, long typeid)
        {
            DAZone dAZone = new DAZone();

            return(this.OK <List <SetPrice> >(dAZone.GetSetprice(zoneid, typeid, _context)));
        }
Пример #5
0
        public IActionResult DefaultZoneType(long zoneid, long typeid, ZoneTypeRelation zoneTypeRelation)
        {
            DAZone dAZone = new DAZone();

            return(this.OKResponse(dAZone.IsDefaultZoneType(zoneid, typeid, _context, User.ToAppUser()) ? "Updated Successfully" : "updation Failed"));
        }
Пример #6
0
        public IActionResult GetZoneTypebyid(long zoneid, long typeid)
        {
            DAZone dAZone = new DAZone();

            return(this.OK <ZoneTypeRelation>(dAZone.GetZoneTypebyid(zoneid, typeid, _context)));
        }
Пример #7
0
        public IActionResult ListZoneTypeDrop(long zoneId)
        {
            DAZone dAZone = new DAZone();

            return(this.OK <List <ZoneTypeDrop> >(dAZone.ZoneType(zoneId, _context)));
        }
Пример #8
0
        public IActionResult ActiveZone(long zoneid, bool isStatus)
        {
            DAZone dAZone = new DAZone();

            return(this.OKResponse(dAZone.ActiveZone(zoneid, isStatus, _context, User.ToAppUser()) == true ? (isStatus == true ? "Active Successfully" : "Blocked Successfully") : "Failed to Update"));
        }