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); }
public string Resolve(Contracts source, ContractsView destination, string destMember, ResolutionContext context) { var partner = _companyBusinessLogic.Get(source.Partner); return(partner.Name); }
public string Resolve(Contracts source, ContractsView destination, string destMember, ResolutionContext context) { var company = _companyBusinessLogic.Get(source.Company); return(company.Name); }
public ActionResult Edit(int id) { var company = _companyBusinessLogic.Get(id); return(View(_mapper.Map <CompanyView>(company))); }