public string InsertDCRLock(string mode, string type, string releasedDate) { string lockType = type == "DCR" ? "IDLE_DCR" : "TP_UNAVAILABILITY"; string result = _objSPData.InsertDCRLock(mode, lockType, releasedDate); return(result); }