Beispiel #1
0
        /// <summary>
        /// Gets a vendor by vendor identifier
        /// </summary>
        /// <param name="vendorId">Vendor identifier</param>
        /// <returns>Vendor</returns>
        public virtual Vendor GetVendorById(int vendorId)
        {
            if (vendorId == 0)
            {
                return(null);
            }

            return(_vendorRepository.FirstOrDefault(vendorId));
        }