// GET: /Inventory/Address/GetAllAddress
        public JsonResult GetAllAddress()
        {
            // ViewBag.AssetCategory = "active";
            //return "good";
            var data = _aManager.GetAllAddress();

            return(Json(new { data = data.Data }, JsonRequestBehavior.AllowGet));
            // return _aManager.GetAllAssetCategory();
        }
Пример #2
0
 public IEnumerable <AddressModel> GetAllAddress()
 {
     logger.LogTrace("Trace Log");
     logger.LogDebug("Debug Log");
     logger.LogInformation("Information Log");
     logger.LogWarning("Warning Log");
     logger.LogError("Error Log");
     logger.LogCritical("Critical Log");
     return(addressManager.GetAllAddress());
 }