public async Task <IActionResult> Save([FromBody] EBaseEntity eDriver)
        {
            if (string.IsNullOrEmpty(eDriver.mobile))
            {
                eDriver.mobile = null;                                       //senao o mysql reclama: Duplicate entry '' for key 'mobile_UNIQUE'
            }
            var result = await SLogisticsDrivers.Save(eDriver);

            return(Ok(result));
        }
        public IActionResult GetCount(string companyID)
        {
            Int64 totalListCount = SLogisticsDrivers.GetCount(companyID);

            return(Ok(totalListCount));
        }
        public IActionResult GetByID(string id)
        {
            EBaseEntity eDriver = SLogisticsDrivers.GetByID(id);

            return(Ok(eDriver));
        }
        public async Task <IActionResult> Remove(string id)
        {
            var ok = await SLogisticsDrivers.Remove(id);

            return(Ok(ok));
        }
        public IActionResult GetAll(string companyID, int listCount = -1, int pageNumber = 0, string orderBy = "name asc")
        {
            var list = SLogisticsDrivers.GetAll(companyID, listCount, pageNumber, orderBy);

            return(Ok(list));
        }