예제 #1
0
        private bool FilterByPartner(Contracts @event, string partnerFilter)
        {
            if (String.IsNullOrEmpty(partnerFilter))
            {
                return(true);
            }
            if (@event.Partner == 0)
            {
                return(false);
            }
            var partner = _companyBusinessLogic.Get(@event.Partner);

            if (partner.Name.Contains(partnerFilter))
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        public string Resolve(Contracts source, ContractsView destination, string destMember, ResolutionContext context)
        {
            var partner = _companyBusinessLogic.Get(source.Partner);

            return(partner.Name);
        }
예제 #3
0
        public string Resolve(Contracts source, ContractsView destination, string destMember, ResolutionContext context)
        {
            var company = _companyBusinessLogic.Get(source.Company);

            return(company.Name);
        }
예제 #4
0
        public ActionResult Edit(int id)
        {
            var company = _companyBusinessLogic.Get(id);

            return(View(_mapper.Map <CompanyView>(company)));
        }