public static string ManageMCMICategory(NameValueCollection querystring) { int integerParse; UserProfile userProfile = WebCommon.GetUserProfile(); var MCMICategory = new MCMICategory { MCMICategoryID = int.TryParse(querystring.Get("MCMICategoryID"), out integerParse) ? integerParse : 0, MCMICategoryName = querystring.Get("MCMICategoryName") // UserID = userProfile.UserId }; string isInsert = querystring.Get("TransType"); string param = WebCommon.ToXML(MCMICategory); return(MCMICategoryDAL.ManageMCMICategory(param, isInsert)); }
public static List <MCMICategory> GetMCMICategory(NameValueCollection querystring) { //string criteria = querystring.Get("Criteria"); //int branchID = int.TryParse(querystring.Get("BranchID"), out branchID) ? branchID : 0; return(MCMICategoryDAL.GetMCMICategory()); }