public UtilityController() { try { iCommonField = new CommonFieldRepository(); iLatestNews = new LatestNewsRepository(); iSearch = new SearchRepository(); } catch (Exception ex) { Utility.WriteLog("UtilityController (Admin, User)", null, "Error while initialize repository.", ex.ToString()); } }
public PropertyGroup(ICommonField field, ICommonProperty property, ICommonMethod calledMethodBeforeGetProperty, ICommonMethod calledMethodBeforeSetProperty, ICommonMethod calledMethodAfterSuccessSetProperty, ICommonMethod calledMethodAfterSetProperty) { Field = field; Property = property; CalledMethodBeforeGetProperty = calledMethodBeforeGetProperty; CalledMethodBeforeSetProperty = calledMethodBeforeSetProperty; CalledMethodAfterSuccessSetProperty = calledMethodAfterSuccessSetProperty; CalledMethodAfterSetProperty = calledMethodAfterSetProperty; }
public DependencyGroup(ICommonField field, ICommonProperty property) { Field = field; Property = property; }
public static bool TryGetField(this IHasFields hasFields, string fieldName, out ICommonField foundCommonField) { return((foundCommonField = hasFields.GetField(fieldName)) != null); }