public async Task <IActionResult> GetAll()
        {
            var couriers = await _courierService.Get();

            if (!couriers.Any())
            {
                return(NoContent());
            }

            return(Ok(couriers));
        }
Exemple #2
0
        public JsonResult GetDataCourier()
        {
            var data = _courierService.Get(o => o.User.IsActive).Select(o => new LookupItemVo
            {
                KeyId       = o.Id,
                DisplayName = o.User.FullName
            }).ToList();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }