Architecturally, System.web should not be referenced in the Business Logic Layer (BLL). Use BLL in your solution structure to follow a separate principle of concern, so refer to System.Web, this is bad practice. BLL should not load / run in the context of Asp.net. For reasons you should consider using System.AppDomain.CurrentDomain.BaseDirectory instead of System.Web.HttpContext.Current.Server.MapPath
CodeSi Sep 06 '17 at 6:49 2017-09-06 06:49
source share