public static BusinesDeal GetBusinesDealByID(int ido) { BusinesDealDetails tbdt = myRealProvider.GetBusinesDealByID(ido); if (tbdt != null) { return(new BusinesDeal(tbdt.ID, tbdt.TypeId, tbdt.ManId, tbdt.Amount, tbdt.BusinessPrice, tbdt.ClientPrice, tbdt.PaidMoney, tbdt.Details, tbdt.AddedDate, tbdt.ManName, tbdt.TypeName)); } else { return(null); } }