public bool SaveList(List<FBEntity> fbEntityList,CurrentUserPost user) { try { using (FBCommonBLL fbCommonBLL = new FBCommonBLL()) { fbCommonBLL.user = user; return fbCommonBLL.FBcommonBllSaveList(fbEntityList); } } catch (Exception ex) { Tracer.Debug(ex.ToString()); throw ex; } }
public SaveResult Save(FBEntity fbEntity,CurrentUserPost user) { SaveResult result = new SaveResult(); try { using (FBCommonBLL fbCommonBLL = new FBCommonBLL()) { fbCommonBLL.user = user; fbCommonBLL.BeginTransaction(); result = fbCommonBLL.FBCommSaveEntity(fbEntity); if (result.Successful) { fbCommonBLL.CommitTransaction(); } } } catch (Exception ex) { result.Successful = false; result.Exception = ex.Message; Tracer.Debug(ex.ToString()); } return result; }