public JsonResult GetVendorById(int IdVendor)
        {
            try
            {
                dt          = service.GetVendorById(IdVendor);
                data.result = JsonConvert.SerializeObject(dt, Formatting.Indented);
            }
            catch (Exception ex)
            {
                data.message = ex.Message;
                data.status  = "error";
                return(Json(data, JsonRequestBehavior.AllowGet));
            }

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