public SaveResult Save(FBEntity fbEntity) { SaveResult result = new SaveResult(); try { using (FBCommonBLL fbCommonBLL = new FBCommonBLL()) { result = fbCommonBLL.FBCommSaveEntity(fbEntity); } } catch (Exception ex) { result.Successful = false; result.Exception = ex.Message; } return result; }
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; }