public static List <CompanyViewModel> ListSearchCompany(CompanyViewModel paramSearch)
        {
            List <CompanyViewModel> result = new List <CompanyViewModel>();

            using (var context = new MarkomApplicationDBEntities())
            {
                var res = context.spSearchCompany(paramSearch.code, paramSearch.name, paramSearch.createDate2, paramSearch.createBy);

                List <CompanyViewModel> comList = res.Select(c => new CompanyViewModel
                {
                    id         = c.id,
                    code       = c.code,
                    name       = c.name,
                    createDate = c.create_date,
                    createBy   = c.create_by
                }).ToList();

                result = comList;
            }

            return(result);
        }