public static List <MCMICategoryDetail> GetMCMICategoryDetail(NameValueCollection querystring) { //string criteria = querystring.Get("Criteria"); int branchID = int.TryParse(querystring.Get("BranchID"), out branchID) ? branchID : 0; return(MCMICategoryDetailDAL.GetMCMICategoryDetail(branchID)); }
public static string ManageMCMICategoryDetail(NameValueCollection querystring) { int integerParse; float floatParse; UserProfile userProfile = WebCommon.GetUserProfile(); var MCMICategoryDetail = new MCMICategoryDetail { MCMICategoryDetailID = int.TryParse(querystring.Get("MCMICategoryDetailID"), out integerParse) ? integerParse : 0, MCMICategoryID = int.TryParse(querystring.Get("MCMICategoryID"), out integerParse) ? integerParse : 0, BranchID = int.TryParse(querystring.Get("BranchID"), out integerParse) ? integerParse : 0, Factor = float.TryParse(querystring.Get("Factor"), out floatParse) ? floatParse : 0, Month = int.TryParse(querystring.Get("Month"), out integerParse) ? integerParse : 0 // UserID = userProfile.UserId }; string isInsert = querystring.Get("TransType"); string param = WebCommon.ToXML(MCMICategoryDetail); return(MCMICategoryDetailDAL.ManageMCMICategoryDetail(param, isInsert)); }