public override object LoginHandler(JObject data) { var result = base.LoginHandler(data); var status = ReflectionHelper.GetPropertyValue(result, "status"); if (status == "success") { MmsService.LoginHandler(data); } return(result); }
public static string GetCurrentProject() { var result = GetCookies("CurrentProject"); if (result == null) { MmsService.LoginHandler(null); } return(result ?? GetCookies("CurrentProject")); }