public bool IsExitCustomerCode(string customerCode) { using (var db = new KoontabiDBEntities()) { var result = db.sp_ExitCustomerCode(customerCode).FirstOrDefault(); return(result.Code == 1); } }